package lab02.test06;

/**
 * Created by Administrator on 2017/10/15.
 */
public class Triangle {
    //属性：三边
    double edge1;
    double edge2;
    double edge3;
    double high;

    double area(){
        high=((double)+(edge1+edge2+edge3))/2;
        return(float)Math.sqrt(high*(high-edge2)*(high-edge3));
    }
    double perimeter(){
        return edge3+edge2+edge1;
    }
    void judge() {
        if (edge1 + edge2 < edge3 || edge1 + edge3 < edge2 || edge3 + edge2 < edge1) ;
        System.out.println("不可以构成三角形");
    }
}
